#include <CUnit/CUnit.h>

#include "../cue_lexer_parser.h"

static char cue_sheet_example_1[] = "FILE \"C:\\MYAUDIO.WAV\" WAVE\n"
" TRACK 01 AUDIO\n"
"  INDEX 01 00:00:00\n"
" TRACK 02 AUDIO\n"
"  INDEX 01 05:50:65\n"
" TRACK 03 AUDIO\n"
"  INDEX 01 09:47:50\n"
" TRACK 04 AUDIO\n"
"  INDEX 01 15:12:53\n"
" TRACK 05 AUDIO\n"
"  INDEX 01 25:02:40\n"
" TRACK 06 AUDIO\n"
"  INDEX 01 27:34:05\n"
" TRACK 07 AUDIO\n"
"  INDEX 01 31:58:53\n"
" TRACK 08 AUDIO\n"
"  INDEX 01 35:08:65\n";

static void
test_parser_can_be_applied_to_file()
{
	struct cue_cd *cd;

	cd = parse_cue_buffer(cue_sheet_example_1, sizeof(cue_sheet_example_1), NULL);
}

void
add_cue_parser_test_suite()
{	
	CU_pSuite result;

	result = CU_add_suite("cue_parser", NULL, NULL);

	CU_ADD_TEST(result, test_parser_can_be_applied_to_file);
}
